﻿using System.Diagnostics.Contracts;

namespace OpenLS.Spreadsheet
{
    internal struct RowColumnGeneration
    {
        public RowColumnGeneration(int id)
        {
            this._id = id;
        }
        private readonly int _id;

        public bool LessThan(RowColumnGeneration rowColumnGeneration)
        {
            Contract.Assert(rowColumnGeneration._id >= _id);
            if (rowColumnGeneration._id > _id)
            {
                return true;
            }
            return false;
        }
        public RowColumnGeneration Increment()
        {
            return new RowColumnGeneration(_id+1);
        }
    }
}